Skip to content

[release/10.0] Backport FormsInputDateTest fixes - #68124

Merged
wtgodbe merged 1 commit into
release/10.0from
backport/net10-inputdate-flaky
Aug 5, 2026
Merged

[release/10.0] Backport FormsInputDateTest fixes#68124
wtgodbe merged 1 commit into
release/10.0from
backport/net10-inputdate-flaky

Conversation

@ilonatommy

@ilonatommy ilonatommy commented Jul 31, 2026

Copy link
Copy Markdown
Member

Backport of #68107 and #68115 to release/10.0

Fixes #67650.

Description

The caret has to be located over the left-most segment of the 3-segment date input, otherwise SendKeys will write to wrong segment, producing non-desired date values.

The test fails deterministically before fix and passes deterministically after the fix.

Customer Impact

None, it's just a test.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Test fix.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@ilonatommy ilonatommy added this to the 10.0.x milestone Jul 31, 2026
@ilonatommy ilonatommy self-assigned this Jul 31, 2026
Copilot AI review requested due to automatic review settings July 31, 2026 08:48
@ilonatommy
ilonatommy requested a review from a team as a code owner July 31, 2026 08:48
@ilonatommy ilonatommy added the area-blazor Includes: Blazor, Razor Components label Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports fixes to FormsInputDateTest on release/10.0 to make the WASM E2E tests deterministic by ensuring keyboard input starts at the left-most segment of native date/time inputs and by using a more robust clear-and-type sequence.

Changes:

  • Un-quarantines the three failing WASM E2E tests and removes the now-unused Microsoft.AspNetCore.InternalTesting import.
  • Introduces SetDate/ClearDate helpers to position the caret and reliably clear native inputs before sending keys.
  • Fixes a typo in a comment (“Stricly” → “Strictly”).
Suppressed comments (1)

src/Components/test/E2ETest/Tests/FormsInputDateTest.cs:240

  • SetDate hard-codes three Keys.ArrowLeft concatenations. This is harder to tweak/read than the existing pattern in this file that uses Enumerable.Repeat/string.Concat for repeated arrow keys.
        input.Click();
        input.SendKeys(Keys.ArrowLeft + Keys.ArrowLeft + Keys.ArrowLeft);
        input.SendKeys(keys);

Comment thread src/Components/test/E2ETest/Tests/FormsInputDateTest.cs
@ilonatommy ilonatommy added Servicing-approved Shiproom has approved the issue tell-mode Indicates a PR which is being merged during tell-mode labels Aug 3, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hi @ilonatommy. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed.

@wtgodbe
wtgodbe merged commit 34e6508 into release/10.0 Aug 5, 2026
29 checks passed
@wtgodbe
wtgodbe deleted the backport/net10-inputdate-flaky branch August 5, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components Servicing-approved Shiproom has approved the issue tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants